/**
 * 项目名：admin
 * 包名：com.xuebang.admin.entity
 * 文件名：NewsTitle.java
 * 版本信息：@version 1.0
 * 日期：2014-1-17-下午12:51:34
 */
package com.xuebang.admin.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

/**
 * 项目名称：admin
 * 类名称：NewsTitle
 * 类描述：
 * 创建人：xuyang
 * 创建时间：2014-1-17 下午12:51:34
 * 修改人：xuyang
 * 修改时间：2014-1-17 下午12:51:34
 * 修改备注：
 * @version 
 */
@Table(name="news_title")
public class NewsTitle {

	@Id
	private Integer id;
	
	@Column
	private String title;

	@Column
	private String smailtitle;
	
	@Column
	private Integer uid;
	
	@Column(name="account_number")
	private Integer accountNumber;
	
	@Column
	private String author;
	
	@Column
	private String copyfrom;
	
	@Column(name="from_url")
	private String fromUrl;
	
	@Column
	private String picurl; // 缩略图地址
	
	@Column
	private Integer ispic; // 是否有缩略图
	
	@Column
	private Integer yz; 
	
	@Column
	private String keywords; // 关键字
	
	@Column
	private String description; // 简介
	
	@Column
	private Integer iftop; //置顶
	
	@Column
	private Integer ifelite; // 推荐
	@Column
	private Integer pages;
	
	@Column
	private String edituser;
	
	@Column
	private Integer  pv; //访问人次

	@Column
	private Integer cid; // 栏目
	
	@Column
	private String cname; // 栏目名字
	
	@Column
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") 
	private Date posttime; // 发布时间
	
	@Column
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") 
	private Date edittime; // 最后一次修改时间
	
	@Column(name="new_type")
	private Integer newType; //新闻类型
	
	@Column
	private Integer red;  // 0:正常   1：回收站
	
	@Column
	private String editor; // 编辑者
	
	/** 新闻内容  */
	private NewsContents newsContents;
	
	/** 缩略图文件 */
	private CommonsMultipartFile picFile;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSmailtitle() {
		return smailtitle;
	}

	public void setSmailtitle(String smailtitle) {
		this.smailtitle = smailtitle;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public Integer getAccountNumber() {
		return accountNumber;
	}

	public void setAccountNumber(Integer accountNumber) {
		this.accountNumber = accountNumber;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getCopyfrom() {
		return copyfrom;
	}

	public void setCopyfrom(String copyfrom) {
		this.copyfrom = copyfrom;
	}

	public String getFromUrl() {
		return fromUrl;
	}

	public void setFromUrl(String fromUrl) {
		this.fromUrl = fromUrl;
	}

	public String getPicurl() {
		return picurl;
	}

	public void setPicurl(String picurl) {
		this.picurl = picurl;
	}

	public Integer getIspic() {
		return ispic;
	}

	public void setIspic(Integer ispic) {
		this.ispic = ispic;
	}

	public Integer getYz() {
		return yz;
	}

	public void setYz(Integer yz) {
		this.yz = yz;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getIftop() {
		return iftop;
	}

	public void setIftop(Integer iftop) {
		this.iftop = iftop;
	}

	public Integer getIfelite() {
		return ifelite;
	}

	public void setIfelite(Integer ifelite) {
		this.ifelite = ifelite;
	}

	public Integer getPages() {
		return pages;
	}

	public void setPages(Integer pages) {
		this.pages = pages;
	}

	public String getEdituser() {
		return edituser;
	}

	public void setEdituser(String edituser) {
		this.edituser = edituser;
	}

	public Integer getPv() {
		return pv;
	}

	public void setPv(Integer pv) {
		this.pv = pv;
	}

	public Integer getCid() {
		return cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public Date getPosttime() {
		return posttime;
	}

	public void setPosttime(Date posttime) {
		this.posttime = posttime;
	}

	public Date getEdittime() {
		return edittime;
	}

	public void setEdittime(Date edittime) {
		this.edittime = edittime;
	}

	public Integer getNewType() {
		return newType;
	}

	public void setNewType(Integer newType) {
		this.newType = newType;
	}

	public Integer getRed() {
		return red;
	}

	public void setRed(Integer red) {
		this.red = red;
	}

	public NewsContents getNewsContents() {
		return newsContents;
	}

	public void setNewsContents(NewsContents newsContents) {
		this.newsContents = newsContents;
	}

	public CommonsMultipartFile getPicFile() {
		return picFile;
	}

	public void setPicFile(CommonsMultipartFile picFile) {
		this.picFile = picFile;
	}
	
	public void setEditor(String editor){
		this.editor = editor;
	}
	public String getEidtor(){
		return editor;
	}
}
